package com.interview.item.javabase.exception;

import java.util.HashMap;

/**
 * @Author:zxh
 * @Description:
 * @Date: 2020/4/17
 * @Modified By:
 */
public class NullDemo {

    public  String one ()throws Exception{
        HashMap<String, String> hashMap = new HashMap<>();
        hashMap.put("str",null);
        String str = hashMap.get("str");
        /*if (String.valueOf(str).equals("one")) {
            System.out.println("shuchu ");
        }*/
        System.out.println("shuchu2");
        return null;
    }

    public static void main(String[] args)throws Exception {
        String one = new NullDemo().one();
      /*  if (one.equals("one")) {
            System.out.println("shuchu");
        }
        System.out.println("wai");*/
    }
}
